# -*- coding: utf-8 -*-

from functools import reduce

def prod(L):
    def product(x,y):
        return x * y
    return reduce(product,L)

def main():
    L = [1,2,3,4,5,6]
    print(prod(L))

if __name__ == '__main__':
    main()